package 进阶.线程.多线程;

public class My_Thread_2 extends Thread{

    public My_Thread_2() {
    }



    public My_Thread_2(String name){
        //把线程名称传递给父类，让父类给线程设置名字
        super(name);
    }

    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName());
    }
}
